package com.jk.customer.dao;

import com.jk.customer.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDao {
    /**
     * 陈浩
     */

    List<ProductEntity> findProduct(@Param("product") ProductEntity product,@Param("userId") Integer userId);

    void updateStatus(@Param("a") int a, @Param("id") String id);

    void cancelEnquiry(String productId);

    void resend(String productId);

    PriceEntity postpone(String productId);

    List<PurchasingDepartmentOrganization> getSelectClassChr();

    List<PurchasingDepartmentOrganization> getSelectClassChrNb(Integer pid);

    List<PurchasingDepartmentOrganization> getSelectClassChrNb2(Integer pid);

    List<PurchasingDepartmentOrganization> getSelectClassChrNb3(Integer pid);

    void resendChr(String productId);

    void addProduct_Chr(PriceEntity price);

    void save(@Param("id") String id,@Param("queryEndDate")String queryEndDate);

    List<OfferFormEntity> showPriceChr(String productId);

    MaterialsEntity selectQuotedChr(@Param("id") String id, @Param("name") String name, @Param("name2") String name2);

    OfferFormEntity selectQuotedChr2(@Param("id") String id, @Param("name") String name);

    MaterialsEntity selectHuiChr(@Param("nbCh") String nbCh,@Param("nbCh2") String nbCh2,@Param("nbCh3") String nbCh3);

    void submitOrder(@Param("totalPrice") Integer totalPrice, @Param("orderid") String orderid, @Param("nbCh2") String nbCh2,@Param("nbCh") String nbCh);

    void updateQueryPriceStatus(String nbCh2);

    PriceEntity updateSelectQuery(String productId);

    void updateSelectQuerySave(ProductEntity price);

    List<ProductEntity> findTotalPages_findPrice(ProductEntity product);
}
